#pragma once
#include "stdafx.h"
#include "IrcConnection.h"

class CRecentChangesChannel :
	public CIrcConnection
{
	Q_OBJECT;

private:
	QString m_user, m_channel;
	QRegExp m_changeRegex;
protected:
	virtual void ProcessIncomingCommand(QString command);
	virtual QHostAddress GetHost() const;
	virtual unsigned short GetPort() const;
	virtual QString GetChannel() const;
	virtual QString GetUser() const;
public:
	CRecentChangesChannel(QString user, QString channel);
	virtual ~CRecentChangesChannel(void);

signals:
	void RecentChange(QString page, QString user, unsigned int diff, int change);
};
